package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.BusinessLicenseMapper;
import com.ruoyi.boss.domain.BusinessLicense;
import com.ruoyi.boss.service.IBusinessLicenseService;

/**
 * 经营许可证信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class BusinessLicenseServiceImpl implements IBusinessLicenseService 
{
    @Autowired
    private BusinessLicenseMapper businessLicenseMapper;

    /**
     * 查询经营许可证信息
     * 
     * @param id 经营许可证信息主键
     * @return 经营许可证信息
     */
    @Override
    public BusinessLicense selectBusinessLicenseById(Long id)
    {
        return businessLicenseMapper.selectBusinessLicenseById(id);
    }

    /**
     * 查询经营许可证信息列表
     * 
     * @param businessLicense 经营许可证信息
     * @return 经营许可证信息
     */
    @Override
    public List<BusinessLicense> selectBusinessLicenseList(BusinessLicense businessLicense)
    {
        return businessLicenseMapper.selectBusinessLicenseList(businessLicense);
    }

    /**
     * 新增经营许可证信息
     * 
     * @param businessLicense 经营许可证信息
     * @return 结果
     */
    @Override
    public int insertBusinessLicense(BusinessLicense businessLicense)
    {
        return businessLicenseMapper.insertBusinessLicense(businessLicense);
    }

    /**
     * 修改经营许可证信息
     * 
     * @param businessLicense 经营许可证信息
     * @return 结果
     */
    @Override
    public int updateBusinessLicense(BusinessLicense businessLicense)
    {
        return businessLicenseMapper.updateBusinessLicense(businessLicense);
    }

    /**
     * 批量删除经营许可证信息
     * 
     * @param ids 需要删除的经营许可证信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessLicenseByIds(Long[] ids)
    {
        return businessLicenseMapper.deleteBusinessLicenseByIds(ids);
    }

    /**
     * 删除经营许可证信息信息
     * 
     * @param id 经营许可证信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessLicenseById(Long id)
    {
        return businessLicenseMapper.deleteBusinessLicenseById(id);
    }
}
